package com.vader.admin.entity.DO;

import cn.hutool.core.bean.BeanUtil;
import com.vader.admin.entity.Query.BaseTaskPublishQuery;

import java.io.Serializable;

/**
 * 活动发布信息(BaseTaskPublish)实体类
 *
 * @author Vader
 * @since 2021-10-06 12:46:39
 */
public class BaseTaskPublish implements Serializable {
    private static final long serialVersionUID = -67602130932719776L;
    /**
     * 雪花主键
     */
    private Long id;
    /**
     * 活动名称
     */
    private String taskName;
    /**
     * 发布人id
     */
    private Long publishUid;
    /**
     * 发布组织Id
     */
    private Long publishGroupId;
    /**
     * 接受组织id
     */
    private Long receiveGroupId;
    /**
     * 报名时间
     */
    private Long joinTime;
    /**
     * 开始时间
     */
    private Long startTime;
    /**
     * 结束日期
     */
    private Long endTime;
    
    private String description;
    /**
     * 附件url
     */
    private String url;
    /**
     * 活动类型：0航海，1生财夜话，2线下见面会
     */
    private Integer taskType;
    /**
     * 任务需求人员
     */
    private String rectify;
    /**
     * 参加人员最大数量
     */
    private Integer maxJoin;
    /**
     * 0-报名中，1-进行中, 2—已结束
     */
    private Integer completed;
    /**
     * 创建时间
     */
    private Long createAt;
    /**
     * 修改时间
     */
    private Long updateAt;
    /**
     * 0正常使用，1已删除
     */
    private Integer isDeleted;

    public static BaseTaskPublish from(BaseTaskPublishQuery baseTaskPublishQuery) {
        BaseTaskPublish baseTaskPublish = new BaseTaskPublish();
        BeanUtil.copyProperties(baseTaskPublishQuery,baseTaskPublish);
        return baseTaskPublish;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Long getPublishUid() {
        return publishUid;
    }

    public void setPublishUid(Long publishUid) {
        this.publishUid = publishUid;
    }

    public Long getPublishGroupId() {
        return publishGroupId;
    }

    public void setPublishGroupId(Long publishGroupId) {
        this.publishGroupId = publishGroupId;
    }

    public Long getReceiveGroupId() {
        return receiveGroupId;
    }

    public void setReceiveGroupId(Long receiveGroupId) {
        this.receiveGroupId = receiveGroupId;
    }

    public Long getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(Long joinTime) {
        this.joinTime = joinTime;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getTaskType() {
        return taskType;
    }

    public void setTaskType(Integer taskType) {
        this.taskType = taskType;
    }

    public String getRectify() {
        return rectify;
    }

    public void setRectify(String rectify) {
        this.rectify = rectify;
    }

    public Integer getMaxJoin() {
        return maxJoin;
    }

    public void setMaxJoin(Integer maxJoin) {
        this.maxJoin = maxJoin;
    }

    public Integer getCompleted() {
        return completed;
    }

    public void setCompleted(Integer completed) {
        this.completed = completed;
    }

    public Long getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Long createAt) {
        this.createAt = createAt;
    }

    public Long getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Long updateAt) {
        this.updateAt = updateAt;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

}

